<?php
$title = ($this->enterprise) ? " - " . $this->enterprise->company_name_vn : "";
$this->headTitle($this->translator('enterprise_title') . $title);
?>
<?php 
	$showNameEnterprise = true;
	$module 			= $this->params['module'];
	$controller 		= $this->params['controller'];
	$action 			= $this->params['action'];
	$route				= $module . '_' . $controller . '_' . $action;
	switch($route){
		case 'bizprofile_Enterprise_index' : 
		case 'bizprofile_Partner_list':
		case 'bizprofile_Partner_waiting':
		case 'bizprofile_Partner_pending':	
		case 'bizprofile_Partner_notify':
		case 'bizprofile_Message_inbox':
		case 'bizprofile_Message_view':
		case 'bizprofile_Message_send':
		case 'bizprofile_Message_add':
		case 'bizprofile_Enterprise_list':
		case 'bizprofile_Dashboard_index':
			$showNameEnterprise = false;
		break;
	}
?>		

<?php if($showNameEnterprise):?>
<div class="subcolumns maintitle">
    <h4><?php echo $this->enterprise->company_name_vn; ?>
        <?php
            $arrRouteGeneral = array(
                'enterprise_id' => $this->enterprise->id,
                'enterprise_name' => Tomato_Utility_String::removeSign($this->enterprise->company_name_en, '-', true)
            );
        ?>
        <?php if($this->user_entity == 0) : ?>
        <a href="<?php echo $this->url($arrRouteGeneral, 'bizprofile_user_edit_general_info') ?>">
            <img src="<?php echo $skin_url; ?>/images/edit.png" />
        </a>
        <?php endif; ?>
    </h4>
    <span><?php echo $this->enterprise->company_name_en; ?></span>
</div>
<?php endif;?>
<?php if($this->enterprise && $this->enterprise->frontend_active == 0): ?>
	<h2><?php echo $this->translator('dashboard_message'); ?></h2>
<?php endif; ?>